package com.rtmart.springcloudalibaba.user.feign;

import com.rtmart.springcloudalibaba.common.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-product")
public interface ProductService {
    @GetMapping("/product/{id}")
    Product findOneById(@PathVariable Long id);
}
